package pack3;

public class user {
    public static void main(String[] args) {
     vehicle v=new vehicle(100,100);
     System.out.println("power="+v.getPower());
        System.out.println("speed="+v.getSpeed());
        System.out.println("速度增加五");
        v.speedup(5);
        System.out.println("speed="+v.getSpeed());
        System.out.println("速度减少十");
        v.speedDown(10);
        System.out.println("speed="+v.getSpeed());
        System.out.println("设置功率为六十");
        v.setPower(60);
        System.out.println("power="+v.getPower());
    }
}
